﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EMoney.IStock.Client.Models.QQ
{
    /// <summary>
    /// 成交查询
    /// </summary>
    [Serializable]
    public class DealOrders : QQCommon
    {
        public List<DealOrdersData> data { get; set; }
    }

    [Serializable]
    public class DealOrdersData
    {
        /// <summary>
        /// 成交数量
        /// </summary>
        public string deal_count { get; set; }
        /// <summary>
        /// 成交金额
        /// </summary>
        public string total { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public string c_time { get; set; }
        /// <summary>
        /// 股票代码
        /// </summary>
        public string stock_code { get; set; }
        /// <summary>
        /// 交易方向
        /// </summary>
        public string trade_direction { get; set; }
        /// <summary>
        /// 股票名称
        /// </summary>
        public string stock_name { get; set; }
        /// <summary>
        /// 交易价格
        /// </summary>
        public string trade_price { get; set; }
        /// <summary>
        /// 交易数量
        /// </summary>
        public string trade_count { get; set; }
        /// <summary>
        /// 成交价格
        /// </summary>
        public string deal_price { get; set; }
        /// <summary>
        /// 成交类型（deal，完全成交，part，部分成交）
        /// </summary>
        public string dtype { get; set; }
    }

    /// <summary>
    /// 交易信息
    /// </summary>
    [Serializable]
    public class QQ_DealOrders
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long? ID { get; set; }
        /// <summary>
        /// 成交数量
        /// </summary>
        public int? deal_count { get; set; }
        /// <summary>
        /// 成交金额
        /// </summary>
        public decimal? total { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime? c_time { get; set; }
        /// <summary>
        /// 股票代码
        /// </summary>
        public string stock_code { get; set; }
        /// <summary>
        /// 交易方向
        /// </summary>
        public string trade_direction { get; set; }
        /// <summary>
        /// 股票名称
        /// </summary>
        public string stock_name { get; set; }
        /// <summary>
        /// 交易价格
        /// </summary>
        public decimal? trade_price { get; set; }
        /// <summary>
        /// 交易数量
        /// </summary>
        public int? trade_count { get; set; }
        /// <summary>
        /// 成交价格
        /// </summary>
        public decimal? deal_price { get; set; }
        /// <summary>
        /// 成交类型（deal，完全成交，part，部分成交）
        /// </summary>
        public string dtype { get; set; }
        /// <summary>
        /// 用户QQ号码
        /// </summary>
        public string user_qq { get; set; }
        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }

    /// <summary>
    /// 聚焦个股
    /// </summary>
    [Serializable]
    public class TB_FocusStock
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long? ID { get; set; }
        /// <summary>
        /// 股票代码
        /// </summary>
        public string SecuCode { get; set; }
        /// <summary>
        /// 股票名称
        /// </summary>
        public string SecuName { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime? TradeDate { get; set; }
        /// <summary>
        /// 平均成本
        /// </summary>
        public decimal? AvgPrice { get; set; }
        /// <summary>
        /// 买入人数
        /// </summary>
        public int? Number { get; set; }
        /// <summary>
        /// 买入总股数
        /// </summary>
        public int?  TolDealamt{ get; set; }
        /// <summary>
        /// 买入总资金
        /// </summary>
        public decimal? TolFund { get; set; }
        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }

    /// <summary>
    /// 聚焦板块
    /// </summary>
    [Serializable]
    public class TB_FocusBlock
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long? ID { get; set; }
        /// <summary>
        /// 板块代码
        /// </summary>
        public string BlockCode { get; set; }
        /// <summary>
        /// 板块名称
        /// </summary>
        public string BlockName { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime? TradeDate { get; set; }
        /// <summary>
        /// 平均成本
        /// </summary>
        public decimal? AvgPrice { get; set; }
        /// <summary>
        /// 买入人数
        /// </summary>
        public int? Number { get; set; }
        /// <summary>
        /// 买入总股数
        /// </summary>
        public int? TolDealamt { get; set; }
        /// <summary>
        /// 买入总资金
        /// </summary>
        public decimal? TolFund { get; set; }
        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }

    /// <summary>
    /// 金融平台用户信息
    /// </summary>
    [Serializable]
    public class TB_JRPT_UserInfo
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long ID { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string OpenID { get; set; }
        /// <summary>
        /// 用户绑定的QQ号码
        /// </summary>
        public string QQ { get; set; }
        public string PID { get; set; }
        public string EMName { get; set; }
        public DateTime CreateTime { get; set; }
    }
}
